home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.4 Applications 1997 August / SGI IRIX 6.4 Applications 1997 August.iso / dist / elec_svcs.idb / usr / lib / ES / bin / cleanup.csh.z / cleanup.csh
Encoding:
Linux/UNIX/POSIX Shell Script  |  1997-02-07  |  349 b   |  12 lines

  1. #! /bin/csh -f
  2.  
  3. set VER62MIN = 1232499235
  4. set VER = `/usr/sbin/versions -n | /bin/grep sw.unix | /bin/grep "I  eoe" | /bin/awk '{ print $3}' | /bin/uniq`
  5.  
  6. if (${VER} >= ${VER62MIN}) then
  7.    echo "Removing unnecessary binary for IRIX 5.3 or older..."
  8.    /bin/rm -f /usr/sbin/esswmgr
  9. else
  10.    echo "This machine is running IRIX version= " ${VER}
  11. endif
  12.